package lcr;

public class Test0140 {
}

class Solution0140_1 {
    public ListNode trainingPlan(ListNode head, int cnt) {
        ListNode fast = head;
        ListNode slow = head;
        for (int i = 1; i < cnt; i++) fast=fast.next;

        while(fast.next!=null){
            fast=fast.next;
            slow=slow.next;
        }

        return slow;
    }
}
